package dq.study.designmodel.filter;

/**
 * @author dongqun
 * @Description:
 * @date 2019/3/9 16:16
 */
public class MyFilter2 implements Filter {

    @Override
    public int filter(Request request, Response response, FilterChain chain) {
        request.setRequest(request.getRequest().replace("大保健","大宝剑").replace("小内内","大外外")+ "-->>myfilter2");
        chain.doFilter(request,response);
        response.setResponse(response.getResponse()+"---<<myfilter2");
        return 0;
    }
}
